package com.starhub.application.agent.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.starhub.common.bean.agent.ChatSession;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface ChatSessionMapper extends BaseMapper<ChatSession> {
    
    /**
     * 统计未删除的对话会话总数
     * @return 对话会话总数
     */
    @Select("SELECT COUNT(*) FROM chat_session WHERE delete_type = 0")
    Long countActiveSessions();
} 